<?php



class TypeMotivationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TypeMotivationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('opds');

		$tMap = $this->dbMap->addTable('type_motivation');
		$tMap->setPhpName('TypeMotivation');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('IDTYPE_MOTIVATION', 'IdtypeMotivation', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('LIBELLE', 'Libelle', 'string', CreoleTypes::VARCHAR, false, 100);

	} 
} 